package com.shark.lib.rebirth;

import android.app.job.JobParameters;
import android.app.job.JobService;
import android.os.Build;

import androidx.annotation.RequiresApi;

import java.nio.file.WatchService;

/**
 * @author: guojr
 * @date: 2020/4/13
 */
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public class JobSchedulerService extends JobService {
    @Override
    public boolean onStartJob(JobParameters jobParameters) {
        RebirthEnv.startServiceSafely(JobSchedulerService.this,
                WatchDogService.class);
        return false;
    }

    @Override
    public boolean onStopJob(JobParameters jobParameters) {
        return false;
    }
}
